package com.zdzx.model.service.content.vo;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zdzx.model.entity.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "试题", description = "试题")
@TableName("content_course_tests")
public class CourseTests  extends BaseEntity implements Serializable{


	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value = "courseId", name = "courseId")
	private String courseId;
	@ApiModelProperty(value = "内容", name = "content")
	private String content;
	@ApiModelProperty(value = "选择", name = "optContent")
	@JsonFormat
	private String optContent;
	@ApiModelProperty(value = "答案", name = "answer")
	private String answer;
	@ApiModelProperty(value = "0单选 1多选", name = "type")
	@TableField("`type`")
	private String type;
	@ApiModelProperty(value = "用户答案", name = "userAnswer")
	@TableField(exist = false)
	private String userAnswer;
	
	
	
	

}
